package com.sinrin.service.impl;

import com.sinrin.dao.RecordRepository;
import com.sinrin.entity.Record;
import com.sinrin.service.RecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by sinrin on 2017/8/15.
 */
@Service("recordService")
public class RecordServiceImpl implements RecordService {
    @Resource
    private RecordRepository recordRepository;

    @Override
    public List<Record> getAllRecordList() {
        return this.recordRepository.findAll();
    }
}
